#!/usr/bin/python
# -*- coding: UTF-8 -*-  

"TestSlots"

__author__ = "Wang Zhe"

class Student(object):
    """docstring for Student"""
    __slots__ = ('name','age')

    def __init__(self):
        super(Student, self).__init__()
    

class GraduateStudent(Student):
    """docstring for GraduateStudent"""
    __slots__ = ('score')

    def __init__(self):
        super(GraduateStudent, self).__init__()


        

def main():
    s = Student()
    s.name = 'Michael'
    s.age = 25

    g = GraduateStudent()
    g.score = 9999
    g.name = 555
if __name__ == '__main__':
    main()